<?php

use think\migration\Seeder;

class BasicNonIndustryArea extends Seeder
{
    /**
     * 基本信息 - 非工业溯源地区
     */
    public function run()
    {
        $table = $this->table('basic_non_industry_area');
        $rows  = [
            [
                'id'        => '1',
                'name'      => '其他',
                'region_id' => '0',
                'delete_time' => '0',
            ],
            [
                'id'        => '2',
                'name'      => '河南',
                'region_id' => '0',
                'delete_time' => '0',
            ],
            [
                'id'        => '3',
                'name'      => '山西其他',
                'region_id' => '0',
                'delete_time' => '0',
            ],
            [
                'id'        => '4',
                'name'      => '晋城',
                'region_id' => '0',
                'delete_time' => '0',
            ],
            [
                'id'        => '5',
                'name'      => '长子',
                'region_id' => '53',
                'delete_time' => '0',
            ],
            [
                'id'        => '6',
                'name'      => '上党',
                'region_id' => '53',
                'delete_time' => '0',
            ],
            [
                'id'        => '7',
                'name'      => '壶关',
                'region_id' => '53',
                'delete_time' => '0',
            ],
            [
                'id'        => '8',
                'name'      => '平顺',
                'region_id' => '53',
                'delete_time' => '0',
            ],
            [
                'id'        => '9',
                'name'      => '屯留',
                'region_id' => '53',
                'delete_time' => '0',
            ],
            [
                'id'        => '10',
                'name'      => '潞城',
                'region_id' => '53',
                'delete_time' => '0',
            ],
            [
                'id'        => '11',
                'name'      => '襄垣',
                'region_id' => '53',
                'delete_time' => '0',
            ],
            [
                'id'        => '12',
                'name'      => '沁县',
                'region_id' => '53',
                'delete_time' => '0',
            ],
            [
                'id'        => '13',
                'name'      => '黎城',
                'region_id' => '53',
                'delete_time' => '0',
            ],
            [
                'id'        => '14',
                'name'      => '长治地区1',
                'region_id' => '53',
                'delete_time' => '0',
            ],
            [
                'id'        => '15',
                'name'      => '长治地区2',
                'region_id' => '53',
                'delete_time' => '0',
            ],
            [
                'id'        => '16',
                'name'      => '长治地区3',
                'region_id' => '53',
                'delete_time' => '0',
            ],
            [
                'id'        => '17',
                'name'      => '长治地区4',
                'region_id' => '53',
                'delete_time' => '0',
            ],
        ];
        $table->insert($rows)->save();
    }
}